#!/usr/bin/env bash
#
# Script name: dm-run
# Description: The standard dmenu_run command with flags and a prompt.
# Dependencies: dmenu
# GitLab: https://www.gitlab.com/dwt1/dmscripts
# License: https://www.gitlab.com/dwt1/dmscripts/LICENSE
# Contributors: Derek Taylor

# Set with the flags "-e", "-u","-o pipefail" cause the script to fail
# if certain things happen, which is a good thing.  Otherwise, we can
# get hidden bugs that are hard to discover.
set -euo pipefail

export _JAVA_AWT_WM_NONREPARENTING=1
# exec $(dmenu_path | dmenu_run -l 20 -g 3 -X 0 -Y 0 -W 680 -p 'Run: ' "$@")

exec $(dmenu_path | dmenu -i -m 0 -fn "mononoki Nerd Font:size=13" -nb "#181f21" -nf "#a7a7a7" -sb "#8ccf7e" -sf "#181f21" -x 0 -y 0 -z 990 -h 34 -l 10 -p 'Run:' "$@")

# static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, "-x", "18", "-y", "57" , "-z", "1200", "-h", "32", NULL };
